Adwaita: dodge drop active style for window and decoration nodes
authorLapo Calamandrei <calamandrei@gmail.com>
Wed, 12 Oct 2016 17:30:30 +0000 (19:30 +0200)
committerLapo Calamandrei <calamandrei@gmail.com>
Wed, 12 Oct 2016 17:34:10 +0000 (19:34 +0200)
to hilight drop target there is a wildcard selector which turns
the border and shadow to green, this clearly shouldn't happen when
the whole window is a drop target.

gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index 1e56e5a508a4ab51ebd6a8054656c6a7a489f87b..010b23dadc6bc369c7d4aa77ae914e45d3157408 100644 (file)
@@ -4273,8 +4273,8 @@ button.circular { // FIXME: aggregate to buttons
   }
 }
 
-*:drop(active):focus,
-*:drop(active) { // FIXME needs to be done widget by widget, this wildcard should really die
+:not(decoration):not(window):drop(active):focus,
+:not(decoration):not(window):drop(active) { // FIXME needs to be done widget by widget, this wildcard should really die
   border-color: $drop_target_color;
   box-shadow: inset 0 0 0 1px $drop_target_color;
   caret-color: $drop_target_color;
index fd14f422682f4f90b86b8969da4a2f88a522fc0a..1ff6188827ed1846678df497e8f5f8e8028cb0f0 100644 (file)
@@ -4533,8 +4533,8 @@ button.circular {
     color: #919494;
     transition: 200ms ease-out; }
 
-*:drop(active):focus,
-*:drop(active) {
+:not(decoration):not(window):drop(active):focus,
+:not(decoration):not(window):drop(active) {
   border-color: #4e9a06;
   box-shadow: inset 0 0 0 1px #4e9a06;
   caret-color: #4e9a06; }
index f1e0022b078a328b5bccbcf99122cf3115ecf5a5..38f669825cdfe49ccf5d827aba2b797b30319641 100644 (file)
@@ -4564,8 +4564,8 @@ button.circular {
     color: #8b8e8f;
     transition: 200ms ease-out; }
 
-*:drop(active):focus,
-*:drop(active) {
+:not(decoration):not(window):drop(active):focus,
+:not(decoration):not(window):drop(active) {
   border-color: #4e9a06;
   box-shadow: inset 0 0 0 1px #4e9a06;
   caret-color: #4e9a06; }